﻿

namespace Mulala.Cavan.Domain.MainBoundedContext.DictionaryModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Mulala.Cavan.Domain.Seedwork;
    using Mulala.Cavan.Core.Extension;

    [Serializable]
    public class Area : Persistent<string>
    {
        public virtual string Name { get; set; }
        public virtual string PostCode { get; set; }
        public virtual int Level { get; set; }
        public virtual int Sort { get; set; }
        public virtual string Spell { get; set; }

        public override string ToDisplay()
        {
            return Name;
        }


        public override bool IsTransient()
        {
            return ID.IsEmpty();
        }
    }
}
